home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / OTPAPSampleServer / PAPServerUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.1 KB  |  61 lines  |  [TEXT/CWIE]

  1. /*
  2.  
  3.     file: PAPServerUtilities.h
  4.     
  5.     by:        Rich Kubota
  6.             Developer Technical Support
  7.             
  8. */
  9.  
  10. #ifndef __PAPSERVERUTILITIES__
  11. #define __PAPSERVERUTILITIES__
  12.  
  13.  
  14. #ifndef __CONDITIONALMACROS__
  15. #include <ConditionalMacros.h>
  16. #endif
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. #if PRAGMA_ALIGN_SUPPORTED
  23. #pragma options align=mac68k
  24. #endif
  25.  
  26. #if PRAGMA_IMPORT_SUPPORTED
  27. #pragma import on
  28. #endif
  29.  
  30. #include <Types.h>
  31. #include <OSUtils.h>
  32.  
  33. #define kRootFolderDirID    2
  34. #define kBootVolVRefNum        -1
  35.  
  36.  
  37. // Prototypes
  38. extern short             NumToolboxTraps(void);
  39. extern TrapType         GetTrapType(short theTrap);
  40. extern Boolean             TrapAvailable(short theTrap);
  41. extern pascal    OSErr    HCreateMinimum(short vRefNum,
  42.                                long dirID,
  43.                                ConstStr255Param fileName);
  44. extern OSErr            OpenTempFile(short *fRefNum);
  45. extern OSErr            WriteDataToTempFile(short fRefNum, UInt8 *buffer, UInt32 len);
  46. extern OSErr             CloseTempFile(short    fRefNum);
  47.  
  48.  
  49. #if PRAGMA_IMPORT_SUPPORTED
  50. #pragma import off
  51. #endif
  52.  
  53. #if PRAGMA_ALIGN_SUPPORTED
  54. #pragma options align=reset
  55. #endif
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61. #endif /* __PAPSERVERUTILITIES__ */